<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GDBusMessage</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIO 参考手册">
<link rel="up" href="gdbus-lowlevel.html" title="Lowlevel D-Bus Support">
<link rel="prev" href="gio-GDBusError.html" title="GDBusError">
<link rel="next" href="gio-GDBusConnection.html" title="GDBusConnection">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gio-GDBusError.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="gdbus-lowlevel.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIO 参考手册</th>
<td><a accesskey="n" href="gio-GDBusConnection.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gio-GDBusMessage.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gio-GDBusMessage.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gio-GDBusMessage"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gio-GDBusMessage.top_of_page"></a>GDBusMessage</span></h2>
<p>GDBusMessage — D-Bus Message</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gio-GDBusMessage.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gio/gio.h&gt;

                    <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage">GDBusMessage</a>;
enum                <a class="link" href="gio-GDBusMessage.html#GDBusMessageType" title="enum GDBusMessageType">GDBusMessageType</a>;
enum                <a class="link" href="gio-GDBusMessage.html#GDBusMessageFlags" title="enum GDBusMessageFlags">GDBusMessageFlags</a>;
enum                <a class="link" href="gio-GDBusMessage.html#GDBusMessageHeaderField" title="enum GDBusMessageHeaderField">GDBusMessageHeaderField</a>;
enum                <a class="link" href="gio-GDBusMessage.html#GDBusMessageByteOrder" title="enum GDBusMessageByteOrder">GDBusMessageByteOrder</a>;
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new" title="g_dbus_message_new ()">g_dbus_message_new</a>                  (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-signal" title="g_dbus_message_new_signal ()">g_dbus_message_new_signal</a>           (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *interface_</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *signal</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-method-call" title="g_dbus_message_new_method_call ()">g_dbus_message_new_method_call</a>      (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *interface_</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *method</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-method-reply" title="g_dbus_message_new_method_reply ()">g_dbus_message_new_method_reply</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-method-error" title="g_dbus_message_new_method_error ()">g_dbus_message_new_method_error</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_message_format</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-method-error-valist" title="g_dbus_message_new_method_error_valist ()">g_dbus_message_new_method_error_valist</a>
                                                        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_message_format</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> var_args</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-method-error-literal" title="g_dbus_message_new_method_error_literal ()">g_dbus_message_new_method_error_literal</a>
                                                        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_message</code></em>);
<a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="gio-GDBusMessage.html#g-dbus-message-print" title="g_dbus_message_print ()">g_dbus_message_print</a>                (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> indent</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-locked" title="g_dbus_message_get_locked ()">g_dbus_message_get_locked</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-lock" title="g_dbus_message_lock ()">g_dbus_message_lock</a>                 (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-copy" title="g_dbus_message_copy ()">g_dbus_message_copy</a>                 (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessageByteOrder" title="enum GDBusMessageByteOrder"><span class="returnvalue">GDBusMessageByteOrder</span></a>  <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-byte-order" title="g_dbus_message_get_byte_order ()">g_dbus_message_get_byte_order</a>    (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-byte-order" title="g_dbus_message_set_byte_order ()">g_dbus_message_set_byte_order</a>       (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageByteOrder" title="enum GDBusMessageByteOrder"><span class="type">GDBusMessageByteOrder</span></a> byte_order</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessageType" title="enum GDBusMessageType"><span class="returnvalue">GDBusMessageType</span></a>    <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-message-type" title="g_dbus_message_get_message_type ()">g_dbus_message_get_message_type</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-message-type" title="g_dbus_message_set_message_type ()">g_dbus_message_set_message_type</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageType" title="enum GDBusMessageType"><span class="type">GDBusMessageType</span></a> type</code></em>);
<a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-serial" title="g_dbus_message_get_serial ()">g_dbus_message_get_serial</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-serial" title="g_dbus_message_set_serial ()">g_dbus_message_set_serial</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> serial</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessageFlags" title="enum GDBusMessageFlags"><span class="returnvalue">GDBusMessageFlags</span></a>   <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-flags" title="g_dbus_message_get_flags ()">g_dbus_message_get_flags</a>            (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-flags" title="g_dbus_message_set_flags ()">g_dbus_message_set_flags</a>            (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageFlags" title="enum GDBusMessageFlags"><span class="type">GDBusMessageFlags</span></a> flags</code></em>);
<a href="../glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *          <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-body" title="g_dbus_message_get_body ()">g_dbus_message_get_body</a>             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-body" title="g_dbus_message_set_body ()">g_dbus_message_set_body</a>             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *body</code></em>);
<a class="link" href="gio-GUnixFDList.html#GUnixFDList" title="GUnixFDList"><span class="returnvalue">GUnixFDList</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-unix-fd-list" title="g_dbus_message_get_unix_fd_list ()">g_dbus_message_get_unix_fd_list</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-unix-fd-list" title="g_dbus_message_set_unix_fd_list ()">g_dbus_message_set_unix_fd_list</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GUnixFDList.html#GUnixFDList" title="GUnixFDList"><span class="type">GUnixFDList</span></a> *fd_list</code></em>);
<a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-num-unix-fds" title="g_dbus_message_get_num_unix_fds ()">g_dbus_message_get_num_unix_fds</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-num-unix-fds" title="g_dbus_message_set_num_unix_fds ()">g_dbus_message_set_num_unix_fds</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> value</code></em>);
<a href="../glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *            <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-header-fields" title="g_dbus_message_get_header_fields ()">g_dbus_message_get_header_fields</a>    (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<a href="../glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *          <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-header" title="g_dbus_message_get_header ()">g_dbus_message_get_header</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageHeaderField" title="enum GDBusMessageHeaderField"><span class="type">GDBusMessageHeaderField</span></a> header_field</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-header" title="g_dbus_message_set_header ()">g_dbus_message_set_header</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageHeaderField" title="enum GDBusMessageHeaderField"><span class="type">GDBusMessageHeaderField</span></a> header_field</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-destination" title="g_dbus_message_get_destination ()">g_dbus_message_get_destination</a>      (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-destination" title="g_dbus_message_set_destination ()">g_dbus_message_set_destination</a>      (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-error-name" title="g_dbus_message_get_error_name ()">g_dbus_message_get_error_name</a>       (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-error-name" title="g_dbus_message_set_error_name ()">g_dbus_message_set_error_name</a>       (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-interface" title="g_dbus_message_get_interface ()">g_dbus_message_get_interface</a>        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-interface" title="g_dbus_message_set_interface ()">g_dbus_message_set_interface</a>        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-member" title="g_dbus_message_get_member ()">g_dbus_message_get_member</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-member" title="g_dbus_message_set_member ()">g_dbus_message_set_member</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-path" title="g_dbus_message_get_path ()">g_dbus_message_get_path</a>             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-path" title="g_dbus_message_set_path ()">g_dbus_message_set_path</a>             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
<a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-reply-serial" title="g_dbus_message_get_reply_serial ()">g_dbus_message_get_reply_serial</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-reply-serial" title="g_dbus_message_set_reply_serial ()">g_dbus_message_set_reply_serial</a>     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-sender" title="g_dbus_message_get_sender ()">g_dbus_message_get_sender</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-sender" title="g_dbus_message_set_sender ()">g_dbus_message_set_sender</a>           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-signature" title="g_dbus_message_get_signature ()">g_dbus_message_get_signature</a>        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gio-GDBusMessage.html#g-dbus-message-set-signature" title="g_dbus_message_set_signature ()">g_dbus_message_set_signature</a>        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-arg0" title="g_dbus_message_get_arg0 ()">g_dbus_message_get_arg0</a>             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);
<a href="../glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *            <a class="link" href="gio-GDBusMessage.html#g-dbus-message-to-blob" title="g_dbus_message_to_blob ()">g_dbus_message_to_blob</a>              (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *out_size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusConnection.html#GDBusCapabilityFlags" title="enum GDBusCapabilityFlags"><span class="type">GDBusCapabilityFlags</span></a> capabilities</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>              <a class="link" href="gio-GDBusMessage.html#g-dbus-message-bytes-needed" title="g_dbus_message_bytes_needed ()">g_dbus_message_bytes_needed</a>         (<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blob</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> blob_len</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-from-blob" title="g_dbus_message_new_from_blob ()">g_dbus_message_new_from_blob</a>        (<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blob</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> blob_len</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusConnection.html#GDBusCapabilityFlags" title="enum GDBusCapabilityFlags"><span class="type">GDBusCapabilityFlags</span></a> capabilities</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gio-GDBusMessage.html#g-dbus-message-to-gerror" title="g_dbus_message_to_gerror ()">g_dbus_message_to_gerror</a>            (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gio-GDBusMessage.description"></a><h2>Description</h2>
<p>
A type for representing D-Bus messages that can be sent or received
on a <a class="link" href="gio-GDBusConnection.html#GDBusConnection" title="GDBusConnection"><span class="type">GDBusConnection</span></a>.
</p>
</div>
<div class="refsect1">
<a name="gio-GDBusMessage.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GDBusMessage"></a><h3>GDBusMessage</h3>
<pre class="programlisting">typedef struct _GDBusMessage GDBusMessage;</pre>
<p>
The <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> structure contains only private data and should
only be accessed using the provided API.
</p>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="GDBusMessageType"></a><h3>enum GDBusMessageType</h3>
<pre class="programlisting">typedef enum {
  G_DBUS_MESSAGE_TYPE_INVALID,
  G_DBUS_MESSAGE_TYPE_METHOD_CALL,
  G_DBUS_MESSAGE_TYPE_METHOD_RETURN,
  G_DBUS_MESSAGE_TYPE_ERROR,
  G_DBUS_MESSAGE_TYPE_SIGNAL
} GDBusMessageType;
</pre>
<p>
Message types used in <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="G-DBUS-MESSAGE-TYPE-INVALID:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_TYPE_INVALID</code></span></p></td>
<td>Message is of invalid type.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-TYPE-METHOD-CALL:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_TYPE_METHOD_CALL</code></span></p></td>
<td>Method call.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-TYPE-METHOD-RETURN:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_TYPE_METHOD_RETURN</code></span></p></td>
<td>Method reply.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-TYPE-ERROR:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_TYPE_ERROR</code></span></p></td>
<td>Error reply.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-TYPE-SIGNAL:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_TYPE_SIGNAL</code></span></p></td>
<td>Signal emission.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="GDBusMessageFlags"></a><h3>enum GDBusMessageFlags</h3>
<pre class="programlisting">typedef enum {
  G_DBUS_MESSAGE_FLAGS_NONE = 0,
  G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED = (1&lt;&lt;0),
  G_DBUS_MESSAGE_FLAGS_NO_AUTO_START = (1&lt;&lt;1)
} GDBusMessageFlags;
</pre>
<p>
Message flags used in <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="G-DBUS-MESSAGE-FLAGS-NONE:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_FLAGS_NONE</code></span></p></td>
<td>No flags set.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-FLAGS-NO-REPLY-EXPECTED:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED</code></span></p></td>
<td>A reply is not expected.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-FLAGS-NO-AUTO-START:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_FLAGS_NO_AUTO_START</code></span></p></td>
<td>The bus must not launch an
owner for the destination name in response to this message.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="GDBusMessageHeaderField"></a><h3>enum GDBusMessageHeaderField</h3>
<pre class="programlisting">typedef enum {
  G_DBUS_MESSAGE_HEADER_FIELD_INVALID,
  G_DBUS_MESSAGE_HEADER_FIELD_PATH,
  G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE,
  G_DBUS_MESSAGE_HEADER_FIELD_MEMBER,
  G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME,
  G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL,
  G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION,
  G_DBUS_MESSAGE_HEADER_FIELD_SENDER,
  G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE,
  G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS
} GDBusMessageHeaderField;
</pre>
<p>
Header fields used in <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-INVALID:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_INVALID</code></span></p></td>
<td>Not a valid header field.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-PATH:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_PATH</code></span></p></td>
<td>The object path.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-INTERFACE:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE</code></span></p></td>
<td>The interface name.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-MEMBER:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_MEMBER</code></span></p></td>
<td>The method or signal name.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-ERROR-NAME:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME</code></span></p></td>
<td>The name of the error that occurred.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-REPLY-SERIAL:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL</code></span></p></td>
<td>The serial number the message is a reply to.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-DESTINATION:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION</code></span></p></td>
<td>The name the message is intended for.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-SENDER:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_SENDER</code></span></p></td>
<td>Unique name of the sender of the message (filled in by the bus).
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-SIGNATURE:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE</code></span></p></td>
<td>The signature of the message body.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-HEADER-FIELD-NUM-UNIX-FDS:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS</code></span></p></td>
<td>The number of UNIX file descriptors that accompany the message.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="GDBusMessageByteOrder"></a><h3>enum GDBusMessageByteOrder</h3>
<pre class="programlisting">typedef enum
{
  G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN    = 'B',
  G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN = 'l'
} GDBusMessageByteOrder;
</pre>
<p>
Enumeration used to describe the byte order of a D-Bus message.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="G-DBUS-MESSAGE-BYTE-ORDER-BIG-ENDIAN:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN</code></span></p></td>
<td>The byte order is big endian.
</td>
</tr>
<tr>
<td><p><a name="G-DBUS-MESSAGE-BYTE-ORDER-LITTLE-ENDIAN:CAPS"></a><span class="term"><code class="literal">G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN</code></span></p></td>
<td>The byte order is little endian.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new"></a><h3>g_dbus_message_new ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new                  (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new empty <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new-signal"></a><h3>g_dbus_message_new_signal ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new_signal           (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *interface_</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *signal</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> for a signal emission.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>A valid object path.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>interface_</code></em> :</span></p></td>
<td>A valid D-Bus interface name.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>signal</code></em> :</span></p></td>
<td>A valid signal name.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new-method-call"></a><h3>g_dbus_message_new_method_call ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new_method_call      (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *interface_</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *method</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> for a method call.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A valid D-Bus name or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>A valid object path.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>interface_</code></em> :</span></p></td>
<td>A valid D-Bus interface name or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>method</code></em> :</span></p></td>
<td>A valid method name.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new-method-reply"></a><h3>g_dbus_message_new_method_reply ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new_method_reply     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> that is a reply to <em class="parameter"><code>method_call_message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>method_call_message</code></em> :</span></p></td>
<td>A message of type <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-TYPE-METHOD-CALL:CAPS"><code class="literal">G_DBUS_MESSAGE_TYPE_METHOD_CALL</code></a> to
create a reply message to.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new-method-error"></a><h3>g_dbus_message_new_method_error ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new_method_error     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_message_format</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> that is an error reply to <em class="parameter"><code>method_call_message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>method_call_message</code></em> :</span></p></td>
<td>A message of type <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-TYPE-METHOD-CALL:CAPS"><code class="literal">G_DBUS_MESSAGE_TYPE_METHOD_CALL</code></a> to
create a reply message to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_name</code></em> :</span></p></td>
<td>A valid D-Bus error name.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_message_format</code></em> :</span></p></td>
<td>The D-Bus error message in a <code class="function">printf()</code> format.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>Arguments for <em class="parameter"><code>error_message_format</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new-method-error-valist"></a><h3>g_dbus_message_new_method_error_valist ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new_method_error_valist
                                                        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_message_format</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> var_args</code></em>);</pre>
<p>
Like <a class="link" href="gio-GDBusMessage.html#g-dbus-message-new-method-error" title="g_dbus_message_new_method_error ()"><code class="function">g_dbus_message_new_method_error()</code></a> but intended for language bindings.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>method_call_message</code></em> :</span></p></td>
<td>A message of type <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-TYPE-METHOD-CALL:CAPS"><code class="literal">G_DBUS_MESSAGE_TYPE_METHOD_CALL</code></a> to
create a reply message to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_name</code></em> :</span></p></td>
<td>A valid D-Bus error name.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_message_format</code></em> :</span></p></td>
<td>The D-Bus error message in a <code class="function">printf()</code> format.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>var_args</code></em> :</span></p></td>
<td>Arguments for <em class="parameter"><code>error_message_format</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new-method-error-literal"></a><h3>g_dbus_message_new_method_error_literal ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new_method_error_literal
                                                        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *method_call_message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *error_message</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> that is an error reply to <em class="parameter"><code>method_call_message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>method_call_message</code></em> :</span></p></td>
<td>A message of type <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-TYPE-METHOD-CALL:CAPS"><code class="literal">G_DBUS_MESSAGE_TYPE_METHOD_CALL</code></a> to
create a reply message to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_name</code></em> :</span></p></td>
<td>A valid D-Bus error name.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error_message</code></em> :</span></p></td>
<td>The D-Bus error message.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>. Free with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-print"></a><h3>g_dbus_message_print ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             g_dbus_message_print                (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> indent</code></em>);</pre>
<p>
Produces a human-readable multi-line description of <em class="parameter"><code>message</code></em>.
</p>
<p>
The contents of the description has no ABI guarantees, the contents
and formatting is subject to change at any time. Typical output
looks something like this:
</p>
<pre class="programlisting">
Type:    method-call
Flags:   none
Version: 0
Serial:  4
Headers:
  path -&gt; objectpath '/org/gtk/GDBus/TestObject'
  interface -&gt; 'org.gtk.GDBus.TestInterface'
  member -&gt; 'GimmeStdout'
  destination -&gt; ':1.146'
Body: ()
UNIX File Descriptors:
  (none)
</pre>
<p>
or
</p>
<pre class="programlisting">
Type:    method-return
Flags:   no-reply-expected
Version: 0
Serial:  477
Headers:
  reply-serial -&gt; uint32 4
  destination -&gt; ':1.159'
  sender -&gt; ':1.146'
  num-unix-fds -&gt; uint32 1
Body: ()
UNIX File Descriptors:
  fd 12: dev=0:10,mode=020620,ino=5,uid=500,gid=5,rdev=136:2,size=0,atime=1273085037,mtime=1273085851,ctime=1272982635
</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>indent</code></em> :</span></p></td>
<td>Indentation level.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A string that should be freed with <a href="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-locked"></a><h3>g_dbus_message_get_locked ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            g_dbus_message_get_locked           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Checks whether <em class="parameter"><code>message</code></em> is locked. To monitor changes to this
value, conncet to the <a href="../gobject/gobject-The-Base-Object-Type.html#GObject-notify"><span class="type">"notify"</span></a> signal to listen for changes
on the <a href="GDBusMessage.html#GDBusMessage--locked"><span class="type">"locked"</span></a> property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>message</code></em> is locked, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-lock"></a><h3>g_dbus_message_lock ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_lock                 (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
If <em class="parameter"><code>message</code></em> is locked, does nothing. Otherwise locks the message.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-copy"></a><h3>g_dbus_message_copy ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_copy                 (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Copies <em class="parameter"><code>message</code></em>. The copy is a deep copy and the returned
<a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> is completely identical except that it is guaranteed
to not be locked.
</p>
<p>
This operation can fail if e.g. <em class="parameter"><code>message</code></em> contains file descriptors
and the per-process or system-wide open files limit is reached.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. Free with
<a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-byte-order"></a><h3>g_dbus_message_get_byte_order ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessageByteOrder" title="enum GDBusMessageByteOrder"><span class="returnvalue">GDBusMessageByteOrder</span></a>  g_dbus_message_get_byte_order    (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Gets the byte order of <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The byte order.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-byte-order"></a><h3>g_dbus_message_set_byte_order ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_byte_order       (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageByteOrder" title="enum GDBusMessageByteOrder"><span class="type">GDBusMessageByteOrder</span></a> byte_order</code></em>);</pre>
<p>
Sets the byte order of <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>byte_order</code></em> :</span></p></td>
<td>The byte order.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-message-type"></a><h3>g_dbus_message_get_message_type ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessageType" title="enum GDBusMessageType"><span class="returnvalue">GDBusMessageType</span></a>    g_dbus_message_get_message_type     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Gets the type of <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A 8-bit unsigned integer (typically a value from the <a class="link" href="gio-GDBusMessage.html#GDBusMessageType" title="enum GDBusMessageType"><span class="type">GDBusMessageType</span></a> enumeration).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-message-type"></a><h3>g_dbus_message_set_message_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_message_type     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageType" title="enum GDBusMessageType"><span class="type">GDBusMessageType</span></a> type</code></em>);</pre>
<p>
Sets <em class="parameter"><code>message</code></em> to be of <em class="parameter"><code>type</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>A 8-bit unsigned integer (typically a value from the <a class="link" href="gio-GDBusMessage.html#GDBusMessageType" title="enum GDBusMessageType"><span class="type">GDBusMessageType</span></a> enumeration).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-serial"></a><h3>g_dbus_message_get_serial ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             g_dbus_message_get_serial           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Gets the serial for <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-serial"></a><h3>g_dbus_message_set_serial ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_serial           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> serial</code></em>);</pre>
<p>
Sets the serial for <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>serial</code></em> :</span></p></td>
<td>A <a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-flags"></a><h3>g_dbus_message_get_flags ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessageFlags" title="enum GDBusMessageFlags"><span class="returnvalue">GDBusMessageFlags</span></a>   g_dbus_message_get_flags            (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Gets the flags for <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Flags that are set (typically values from the <a class="link" href="gio-GDBusMessage.html#GDBusMessageFlags" title="enum GDBusMessageFlags"><span class="type">GDBusMessageFlags</span></a> enumeration bitwise ORed together).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-flags"></a><h3>g_dbus_message_set_flags ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_flags            (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageFlags" title="enum GDBusMessageFlags"><span class="type">GDBusMessageFlags</span></a> flags</code></em>);</pre>
<p>
Sets the flags to set on <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>Flags for <em class="parameter"><code>message</code></em> that are set (typically values from the <a class="link" href="gio-GDBusMessage.html#GDBusMessageFlags" title="enum GDBusMessageFlags"><span class="type">GDBusMessageFlags</span></a>
enumeration bitwise ORed together).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-body"></a><h3>g_dbus_message_get_body ()</h3>
<pre class="programlisting"><a href="../glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *          g_dbus_message_get_body             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Gets the body of a message.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the body is empty. Do not free, it is owned by <em class="parameter"><code>message</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-body"></a><h3>g_dbus_message_set_body ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_body             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *body</code></em>);</pre>
<p>
Sets the body <em class="parameter"><code>message</code></em>. As a side-effect the
<a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-SIGNATURE:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE</code></a> header field is set to the
type string of <em class="parameter"><code>body</code></em> (or cleared if <em class="parameter"><code>body</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).
</p>
<p>
If <em class="parameter"><code>body</code></em> is floating, <em class="parameter"><code>message</code></em> assumes ownership of <em class="parameter"><code>body</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>body</code></em> :</span></p></td>
<td>Either <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> or a <a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> that is a tuple.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-unix-fd-list"></a><h3>g_dbus_message_get_unix_fd_list ()</h3>
<pre class="programlisting"><a class="link" href="gio-GUnixFDList.html#GUnixFDList" title="GUnixFDList"><span class="returnvalue">GUnixFDList</span></a> *       g_dbus_message_get_unix_fd_list     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Gets the UNIX file descriptors associated with <em class="parameter"><code>message</code></em>, if any.
</p>
<p>
This method is only available on UNIX.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gio-GUnixFDList.html#GUnixFDList" title="GUnixFDList"><span class="type">GUnixFDList</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no file descriptors are
associated. Do not free, this object is owned by <em class="parameter"><code>message</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-unix-fd-list"></a><h3>g_dbus_message_set_unix_fd_list ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_unix_fd_list     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GUnixFDList.html#GUnixFDList" title="GUnixFDList"><span class="type">GUnixFDList</span></a> *fd_list</code></em>);</pre>
<p>
Sets the UNIX file descriptors associated with <em class="parameter"><code>message</code></em>. As a
side-effect the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-NUM-UNIX-FDS:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS</code></a> header
field is set to the number of fds in <em class="parameter"><code>fd_list</code></em> (or cleared if
<em class="parameter"><code>fd_list</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>).
</p>
<p>
This method is only available on UNIX.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fd_list</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GUnixFDList.html#GUnixFDList" title="GUnixFDList"><span class="type">GUnixFDList</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-num-unix-fds"></a><h3>g_dbus_message_get_num_unix_fds ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             g_dbus_message_get_num_unix_fds     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-NUM-UNIX-FDS:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-num-unix-fds"></a><h3>g_dbus_message_set_num_unix_fds ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_num_unix_fds     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-NUM-UNIX-FDS:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-header-fields"></a><h3>g_dbus_message_get_header_fields ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *            g_dbus_message_get_header_fields    (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Gets an array of all header fields on <em class="parameter"><code>message</code></em> that are set.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>An array of header fields terminated by
<a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-INVALID:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_INVALID</code></a>.  Each element is a
<a href="../glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a>. Free with <a href="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-header"></a><h3>g_dbus_message_get_header ()</h3>
<pre class="programlisting"><a href="../glib/glib-GVariant.html#GVariant"><span class="returnvalue">GVariant</span></a> *          g_dbus_message_get_header           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageHeaderField" title="enum GDBusMessageHeaderField"><span class="type">GDBusMessageHeaderField</span></a> header_field</code></em>);</pre>
<p>
Gets a header field on <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>header_field</code></em> :</span></p></td>
<td>A 8-bit unsigned integer (typically a value from the <a class="link" href="gio-GDBusMessage.html#GDBusMessageHeaderField" title="enum GDBusMessageHeaderField"><span class="type">GDBusMessageHeaderField</span></a> enumeration)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> with the value if the header was found, <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
otherwise. Do not free, it is owned by <em class="parameter"><code>message</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-header"></a><h3>g_dbus_message_set_header ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_header           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessageHeaderField" title="enum GDBusMessageHeaderField"><span class="type">GDBusMessageHeaderField</span></a> header_field</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> *value</code></em>);</pre>
<p>
Sets a header field on <em class="parameter"><code>message</code></em>.
</p>
<p>
If <em class="parameter"><code>value</code></em> is floating, <em class="parameter"><code>message</code></em> assumes ownership of <em class="parameter"><code>value</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>header_field</code></em> :</span></p></td>
<td>A 8-bit unsigned integer (typically a value from the <a class="link" href="gio-GDBusMessage.html#GDBusMessageHeaderField" title="enum GDBusMessageHeaderField"><span class="type">GDBusMessageHeaderField</span></a> enumeration)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>A <a href="../glib/glib-GVariant.html#GVariant"><span class="type">GVariant</span></a> to set the header field or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to clear the header field.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-destination"></a><h3>g_dbus_message_get_destination ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_destination      (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-DESTINATION:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-destination"></a><h3>g_dbus_message_set_destination ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_destination      (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-DESTINATION:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-error-name"></a><h3>g_dbus_message_get_error_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_error_name       (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-ERROR-NAME:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-error-name"></a><h3>g_dbus_message_set_error_name ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_error_name       (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-ERROR-NAME:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-interface"></a><h3>g_dbus_message_get_interface ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_interface        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-INTERFACE:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-interface"></a><h3>g_dbus_message_set_interface ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_interface        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-INTERFACE:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-member"></a><h3>g_dbus_message_get_member ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_member           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-MEMBER:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_MEMBER</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-member"></a><h3>g_dbus_message_set_member ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_member           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-MEMBER:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_MEMBER</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-path"></a><h3>g_dbus_message_get_path ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_path             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-PATH:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_PATH</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-path"></a><h3>g_dbus_message_set_path ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_path             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-PATH:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_PATH</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-reply-serial"></a><h3>g_dbus_message_get_reply_serial ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guint32"><span class="returnvalue">guint32</span></a>             g_dbus_message_get_reply_serial     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-REPLY-SERIAL:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-reply-serial"></a><h3>g_dbus_message_set_reply_serial ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_reply_serial     (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-REPLY-SERIAL:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-sender"></a><h3>g_dbus_message_get_sender ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_sender           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-SENDER:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_SENDER</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-sender"></a><h3>g_dbus_message_set_sender ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_sender           (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-SENDER:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_SENDER</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-signature"></a><h3>g_dbus_message_get_signature ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_signature        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience getter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-SIGNATURE:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The value.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-set-signature"></a><h3>g_dbus_message_set_signature ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                g_dbus_message_set_signature        (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *value</code></em>);</pre>
<p>
Convenience setter for the <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-SIGNATURE:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE</code></a> header field.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>The value to set.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-get-arg0"></a><h3>g_dbus_message_get_arg0 ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       g_dbus_message_get_arg0             (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>);</pre>
<p>
Convenience to get the first item in the body of <em class="parameter"><code>message</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The string item or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the first item in the body of
<em class="parameter"><code>message</code></em> is not a string.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-to-blob"></a><h3>g_dbus_message_to_blob ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> *            g_dbus_message_to_blob              (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> *out_size</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusConnection.html#GDBusCapabilityFlags" title="enum GDBusCapabilityFlags"><span class="type">GDBusCapabilityFlags</span></a> capabilities</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Serializes <em class="parameter"><code>message</code></em> to a blob. The byte order returned by
<a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-byte-order" title="g_dbus_message_get_byte_order ()"><code class="function">g_dbus_message_get_byte_order()</code></a> will be used.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>out_size</code></em> :</span></p></td>
<td>Return location for size of generated blob.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>capabilities</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusConnection.html#GDBusCapabilityFlags" title="enum GDBusCapabilityFlags"><span class="type">GDBusCapabilityFlags</span></a> describing what protocol features are supported.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A pointer to a valid binary D-Bus message of <em class="parameter"><code>out_size</code></em> bytes
generated by <em class="parameter"><code>message</code></em> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. Free with <a href="../glib/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-bytes-needed"></a><h3>g_dbus_message_bytes_needed ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gssize"><span class="returnvalue">gssize</span></a>              g_dbus_message_bytes_needed         (<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blob</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> blob_len</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Utility function to calculate how many bytes are needed to
completely deserialize the D-Bus message stored at <em class="parameter"><code>blob</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>blob</code></em> :</span></p></td>
<td>A blob represent a binary D-Bus message.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blob_len</code></em> :</span></p></td>
<td>The length of <em class="parameter"><code>blob</code></em> (must be at least 16).</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Number of bytes needed or -1 if <em class="parameter"><code>error</code></em> is set (e.g. if
<em class="parameter"><code>blob</code></em> contains invalid data or not enough data is available to
determine the size).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-new-from-blob"></a><h3>g_dbus_message_new_from_blob ()</h3>
<pre class="programlisting"><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="returnvalue">GDBusMessage</span></a> *      g_dbus_message_new_from_blob        (<em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *blob</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gsize"><span class="type">gsize</span></a> blob_len</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GDBusConnection.html#GDBusCapabilityFlags" title="enum GDBusCapabilityFlags"><span class="type">GDBusCapabilityFlags</span></a> capabilities</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
Creates a new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> from the data stored at <em class="parameter"><code>blob</code></em>. The byte
order that the message was in can be retrieved using
<a class="link" href="gio-GDBusMessage.html#g-dbus-message-get-byte-order" title="g_dbus_message_get_byte_order ()"><code class="function">g_dbus_message_get_byte_order()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>blob</code></em> :</span></p></td>
<td>A blob represent a binary D-Bus message.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>blob_len</code></em> :</span></p></td>
<td>The length of <em class="parameter"><code>blob</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>capabilities</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusConnection.html#GDBusCapabilityFlags" title="enum GDBusCapabilityFlags"><span class="type">GDBusCapabilityFlags</span></a> describing what protocol features are supported.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>error</code></em> is set. Free with
<a href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
<hr>
<div class="refsect2">
<a name="g-dbus-message-to-gerror"></a><h3>g_dbus_message_to_gerror ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            g_dbus_message_to_gerror            (<em class="parameter"><code><a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a> *message</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>
If <em class="parameter"><code>message</code></em> is not of type <a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-TYPE-ERROR:CAPS"><code class="literal">G_DBUS_MESSAGE_TYPE_ERROR</code></a> does
nothing and returns <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.
</p>
<p>
Otherwise this method encodes the error in <em class="parameter"><code>message</code></em> as a <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>
using <a class="link" href="gio-GDBusError.html#g-dbus-error-set-dbus-error" title="g_dbus_error_set_dbus_error ()"><code class="function">g_dbus_error_set_dbus_error()</code></a> using the information in the
<a class="link" href="gio-GDBusMessage.html#G-DBUS-MESSAGE-HEADER-FIELD-ERROR-NAME:CAPS"><code class="literal">G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME</code></a> header field of <em class="parameter"><code>message</code></em> as
well as the first string item in <em class="parameter"><code>message</code></em>'s body.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
<td>A <a class="link" href="gio-GDBusMessage.html#GDBusMessage" title="GDBusMessage"><span class="type">GDBusMessage</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>The <a href="../glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> to set.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>error</code></em> was set, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.26</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>